package main

import (
	"fmt"
	"github.com/tietang/props/ini"
	"github.com/tietang/props/kvs"
)

func main() {
	file:=kvs.GetCurrentFilePath("config.ini",1)
	conf:=ini.NewIniFileConfigSource(file)
	port := conf.GetIntDefault("app.server.port", 8080)
	fmt.Println(port)
}